package net.toocruel.iqismart.entity.setting;

import net.toocruel.iqismart.entity.base.BaseEntity;

import javax.persistence.*;

/**
 * The type Setting.
 */
@Entity
public class Setting extends BaseEntity {
    private static final long serialVersionUID = -6639872811117228926L;
    public static Setting SETTING;

    private boolean inited = false;

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "websiteId")
    private SettingWebsite website = new SettingWebsite();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "emailId")
    private SettingEmail email = new SettingEmail();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "coinId")
    private SettingCoin coin = new SettingCoin();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "creditId")
    private SettingCredit credit = new SettingCredit();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "irrigationId")
    private SettingIrrigation irrigation = new SettingIrrigation();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "oauthId")
    private SettingOauth oauth = new SettingOauth();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "registerId")
    private SettingRegister register = new SettingRegister();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "searchId")
    private SettingSearch search = new SettingSearch();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "seoId")
    private SettingSeo seo = new SettingSeo();

    @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JoinColumn(name = "timeId")
    private SettingTime time = new SettingTime();




    public SettingWebsite getWebsite() {
        return website;
    }

    public void setWebsite(SettingWebsite website) {
        this.website = website;
    }

    public boolean isInited() {
        return inited;
    }

    public void setInited(boolean inited) {
        this.inited = inited;
    }

    public SettingEmail getEmail() {
        return email;
    }

    public void setEmail(SettingEmail email) {
        this.email = email;
    }

    public SettingCoin getCoin() {
        return coin;
    }

    public void setCoin(SettingCoin coin) {
        this.coin = coin;
    }

    public SettingCredit getCredit() {
        return credit;
    }

    public void setCredit(SettingCredit credit) {
        this.credit = credit;
    }

    public SettingIrrigation getIrrigation() {
        return irrigation;
    }

    public void setIrrigation(SettingIrrigation irrigation) {
        this.irrigation = irrigation;
    }

    public SettingOauth getOauth() {
        return oauth;
    }

    public void setOauth(SettingOauth oauth) {
        this.oauth = oauth;
    }

    public SettingRegister getRegister() {
        return register;
    }

    public void setRegister(SettingRegister register) {
        this.register = register;
    }

    public SettingSearch getSearch() {
        return search;
    }

    public void setSearch(SettingSearch search) {
        this.search = search;
    }

    public SettingSeo getSeo() {
        return seo;
    }

    public void setSeo(SettingSeo seo) {
        this.seo = seo;
    }

    public SettingTime getTime() {
        return time;
    }

    public void setTime(SettingTime time) {
        this.time = time;
    }
}